package com.bristua.mall.user.controller;

import com.bristua.mall.common.bean.Result;
import com.bristua.mall.common.utils.HandleResultUtil;
import com.bristua.mall.user.biz.AddUserAddressBiz;
import com.bristua.mall.user.model.TUserAdress;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController;

/**
 * Created by Administrator on 2019/3/24.
 */
@RestController
@Api(value="增加用户收货地址",tags={"增加用户收货地址"})
public class AddUserAddressController {

    @Autowired
    private AddUserAddressBiz addUserAddressBiz;
    @PostMapping(value="/api/user/add/address")
    @ApiOperation(value="增加用户收货地址")
    public Result addUserAddress(@RequestBody TUserAdress tUserAdress){
        addUserAddressBiz.addUserAddress(tUserAdress);
        return HandleResultUtil.addSuccessResult();
    }
}
